<!DOCTYPE html>
<html >
	<head>
		<meta charset="utf-8" />
		<script type="text/javascript" src="../js/angular.js" ></script>
		<title></title>
	</head>
	<body ng-app="app" >
		<div ng-controller="ctrl"  >
			<ul>
				<li ng-repeat="v in data track by $index" >
					<span style="{{$first?'color:red':''}}" >姓名：{{v}}</span>
				</li>
			</ul>
		</div>
		<script>
            var app=angular.module("app",[]);
            app.controller("ctrl",["$scope",function($scope){
                $scope.data=["张三","李四","abc","abc"];
            }]);

		</script>
	</body>
</html>
